{extend name="base" /}
{block name="header"}
{/block}
{block name="body"}
<!--container-->
<div class="container clearfix">
    <div class="bread">
        <span>您的位置 : </span>
        <a href="{$site_config.site_domain}">{$site_config.site_name}</a> &gt;
        <a href="{:url("/news","","html",true)}">资讯</a> &gt;
        <a href="{:url("/news/" . $detail['id'] ,"html",true)}">{$detail.title}</a>
    </div>
    <div class="wrap clearfix">
        <!--primary-->
        <div class="news-info">
            <div class="title">
                <h1>{$detail.title}</h1>
                <p><span>时间：<em>{$detail.create_time | date="Y-m-d H:i:s"}</em></span><span>编辑：<em>{$detail.author}</em></span></p>
            </div>
            {neq name="$detail.introduction" value=""}
            <div class="description">{$detail.introduction}</div>
            {/neq}

            {neq name="$detail.article" value=""}
            <div class="cover">
                <p class="pic"><a title="{$detail.article.title}" href="{:url("/book/" . $detail['article']['id'],"","html",true)}" target="_blank"><img class="lazy" src="{$detail.article.local_image | down_image}" alt="{$detail.article.title}"></a></p>
                <p class="stars">推荐指数：<span class="star"><i style="width:80%;">8分</i></span></p>
                <p class="read"><a href="{:url("/book/" . $detail['article']['id'],"","html",true)}" target="_blank">{$detail.article.title}在线阅读全文</a></p>
            </div>
            {/neq}

            <div class="content">
                {neq name="$detail.chapter_title" value=""}
                <h3>{$detail.chapter_title}</h3>
                {/neq}
                <?php echo $detail['content'];?>
            </div>
            {neq name="$detail.article" value=""}
            <div class="book">
                <dl class="clearfix">
                    <dt><a href="{:url("/book/" . $detail['article']['id'],"","html",true)}" target="_blank"><img class="lazy" src="{$detail.article.local_image | down_image}" alt="{$detail.article.title}"></a></dt>
                    <dd>
                        <h4>{$detail.article.title}</h4>
                        <p class="info"><span>作者：{$detail.article.author}</span><span>类型：{$detail.article.cid | show_cid_name}</span><span>状态：{eq name="$detail.article.full" value="1"}已完结{else/}连载中{/eq}</span></p>
                        <p class="intro">{$detail.article.introduction}</p>
                        <p class="star"><i style="width:80%;"></i></p>
                        <a class="view" href="{:url("/book/" . $detail['article']['id'],"","html",true)}" target="_blank">小说详情</a>
                    </dd>
                </dl>
            </div>
            <div class="related">
                <h3>最新章节</h3>
                <ul class="clearfix">
                    {foreach $detail.article.last_update_chapter_list as $chapter}
                    <li><a target="_blank" href="{:url("/chapter/" . $chapter['article_id'] . "/" . $chapter['id'],"","html",true)}">{$chapter.title}</a><span>{$chapter.create_time | date="Y-m-d H:i:s"}</span></li>
                    {/foreach}
                </ul>
            </div>
            {/neq}
            <div class="porn">
                <ul class="clearfix">
                    {neq name="$detail.prev_news" value=""}<li>上一篇：<a href="{:url("/news/" . $detail['prev_news']['id'],"","html",true)}">{$detail.prev_news.title}</a></li>{else/}<li>上一篇：暂无</li>{/neq}
                    {neq name="$detail.next_news" value=""}<li>下一篇：<a href="{:url("/news/" . $detail['next_news']['id'],"","html",true)}">{$detail.next_news.title}</a></li>{else/}<li>下一篇：暂无</li>{/neq}
                </ul>
            </div>
            <div class="related">
                <h3>相关文章</h3>
                <ul class="clearfix">
                    {foreach $rand_news as $item}
                    <li><a target="_blank" href="{:url("/news/" . $item['id'],"","html",true)}">{$item.title}</a><span>{$item.create_time | date="Y-m-d"}</span></li>
                    {/foreach}
                </ul>
            </div>
        </div>
        <!--/primary-->
        <!--side-->
        <div class="side-bar">
            <!--hot-news-->
            <div class="hot-news">
                <h3>热门资讯</h3>
                <ul>
                    {foreach $hot_news as $key => $item}
                    <li class="s{$key + 1}"><em>{$key + 1}</em><a href="{:url("/news/" . $item['id'],"","html",true)}" target="_blank">{$item.title}</a></li>
                    {/foreach}
                </ul>
            </div>
            <!--hot-tags-->
            <div class="hot-tags">
                <h3>热门专题</h3>
                <ul>
                    {foreach $hot_tags_list as $item}
                    <li>
                        <a href="{:url("/tags/" . $item['id'],"","html",true)}"><img src="{$item.image | down_image}" alt="{$item.title}"><span>{$item.title}</span></a>
                    </li>
                    {/foreach}
                </ul>
            </div>
            <!--new-book-->
            <div class="new-book">
                <h3>推荐小说</h3>
                <ul>
                    {block_list block_id="1006" limit="5"}
                    <li>
                        <a class="pic" title="{$item.title}" href="{:url("/book/" . $item['id'],"","html",true)}"><img src="{$item.local_image | down_image}" alt="{$item.title}"></a>
                        <h5><a href="{:url("/book/" . $item['id'],"","html",true)}" title="{$item.title}">{$item.title}</a></h5>
                        <p>分类：{$item.cid | show_cid_name}</p>
                        <p>状态：{eq name="$item.full" value="1"}已完结{else/}连载中{/eq}</p>
                    </li>
                    {/block_list}
                </ul>
            </div>
        </div>
        <!--/side-->
    </div>
</div>
<!--/container-->
{/block}
{block name="footer"}
<input type="hidden" value="arc" id="hit_act">
<input type="hidden" value="104567" id="aid">
<script>
    if($("#hit_act").val()){
        console.log($("#hit_act").val());
        $.get("/ajax",{ act:"hit_record", type:$("#hit_act").val(),aid: $("#aid").val()},function(data){
            console.log(data);
        });
    }
</script>
{/block}